<div>
    <p>书名：{{title}}</p>
    <p>作者：{{author}}</p>
    <p>价格：{{price}}</p>
</div>
<script>
    window.foo = function() {
        alert('hello');
    }
</script>
<script>
    window.foo2 = function() {
        alert('goodbye');
    }
</script>